package com.cyzy.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 文件配置类
 * @description: 读取文件上传相关配置
 * @author: yangJingShi
 * @date: 2025/1/19
 */
@Component
@ConfigurationProperties(prefix = "file")
public class FileConfig {
    
    /**
     * 上传路径
     */
    private String uploadPath = "D:/ruoyi/uploadPath";
    
    /**
     * 资源前缀
     */
    private String resourcePrefix = "/profile";

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public String getResourcePrefix() {
        return resourcePrefix;
    }

    public void setResourcePrefix(String resourcePrefix) {
        this.resourcePrefix = resourcePrefix;
    }
}